from typing import Any

from aiogram_dialog import DialogManager

from src.bot.states import PaymentSG


async def select_subscription_type(_, widget: Any, manager: DialogManager):
    manager.dialog_data["subscription_type"] = widget.widget_id
    await manager.start(
        PaymentSG.select_payment_method, {"subscription_type": widget.widget_id}
    )
